<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>

</head>
<body>

	<table border="1px">
		<tr>
			<td>姓名</td>
			<td>性别</td>
			<td>年龄</td>
			<td>操作</td>
		</tr>
	<?php foreach ($arr as $key => $v) { ?>
		<tr>
			<td><?php echo $v['username'] ?></td>
			<td><?php echo $v['age'] ?></td>
			<td><?php echo $v['sex'] ?></td>
			<td><a href="./detail.php?id=<?php echo $key ?>">详情</a></td>
		</tr>
	<?php } ?>
		
	</table>
		

	
</body>
</html>